import request from '@/utils/request'
/*黑名单*/

// 黑名单信息查询
export function searchList(query) {
  return request({
    url: '/credit/selectBlack',
    method: 'get',
    params: query
  })
}

// 新增用户
export function addUser(data) {
  return request({
    url: '/credit/saveBlack',
    method: 'post',
    data: data
  })
}
// 删除用户
export function delUser(query) {
  return request({
    url: '/credit/deleteBlack',
    method: 'get',
    params: query
  })
}

// 修改用户
export function updateUser(data) {
  return request({
    url: '/credit/saveBlack',
    method: 'post',
    data: data
  })
}

// 导出模板
export function exportUser(query) {
  return request({
    url: '/credit/importTemplate',
    method: 'get',
    params: query
  })
}

